﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace Vortex
{
    public partial class Customer : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }

        protected void btnShow_Click(object sender, EventArgs e)
        {
            var detView = (DetailsView)LoginView2.FindControl("DetailsView2");
            if (detView != null)
            {
                if (detView.Visible)
                {
                    detView.Visible = false;
                    var btnShow = (Button)LoginView2.FindControl("btnShow");
                    btnShow.Text = "Show Insert";
                }
                else
                {
                    detView.Visible = true;
                    var btnShow = (Button)LoginView2.FindControl("btnShow");
                    btnShow.Text = "Hide Insert";
                }
            }
        }
    }
}